﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace ABLocal
{
    public class TextDefaultSetting : MonoBehaviour
    {
        Text text;

       
        private void Reset()
        {
            text = GetComponent<Text>();
            text.fontSize = GameAssetSetting.GetAssetSetting().TextDefaultSize;
            text.alignment = TextAnchor.UpperLeft;
            text.verticalOverflow = VerticalWrapMode.Overflow;
            language = text.text;
        }

        public string language;

        private void OnValidate()
        {
            text = GetComponent<Text>();
            text.text = language;
        }

        // Start is called before the first frame update
        void Start()
        {

        }

        // Update is called once per frame
        void Update()
        {

        }
    }
}